home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_1 / chessc29.zip / UPLOADZ.BAT < prev    next >
DOS Batch File  |  1993-04-25  |  847b  |  34 lines

  1. @echo off
  2. set comport=2
  3. if `%1==` goto NoFile
  4. if exist %1 goto Start
  5.  
  6. :NotFound
  7.   echo .
  8.   echo   Oops.... %1 was NOT FOUND !!   Nothing UPLOADed....
  9.   echo .
  10.   goto AllDone
  11.  
  12. :NoFile
  13.   echo .
  14.   echo   To Upload a file with this BAT file, you MUST supply the name
  15.   echo   of the file you want to upload.  (ie:  UPLOADZ C:\MYFILE.ZIP)
  16.   echo .
  17.   goto AllDone
  18.  
  19. :Start
  20.   echo .
  21.   echo UPLOADZ.BAT:  Using DSZ to UPLOAD %1 thru ComPort %comport%
  22.   echo .
  23.   dsz port %comport% handshake both pB4096 z sz %1
  24.   echo .
  25.   echo .
  26.   if errorlevel==1 echo Upload did NOT work...
  27.  
  28. :AllDone
  29.   echo .
  30.   echo   If you SHELLED out of ChessCOM, type EXIT to return to CHESSCOM.
  31.   echo   If this does not get you back into ChessCOM, then it is no longer
  32.   echo   in memory and you should type CHESSCOM to fire it up again.
  33.   echo .
  34.